<div {% if include.id %}id="{{ include.id }}"{%- endif %}>
  <img src="{{ include.src }}" style="{% if include.size100 %}width: 100%; height: 100%;{%- endif %}{% if include.background %} background-color: #888;{%- endif %}"
       alt="{{ include.alt }}" {% if include.title %}title="{{ include.title }}"{%- endif %}>
{%- if include.caption %}
  <div>
    <span class="caption">{{ include.caption }}</span>
  </div>
{%- endif %}
</div>
